package shixhun;

import java.sql.Timestamp;

public class timestamp {
    public static void main(String[] args) {
        Timestamp ts = new Timestamp((System.currentTimeMillis()));
        System.out.println(ts);
        long time = ts.getTime();
        System.out.println(time);
    }
}
